package com.ht.pms.core.dto.upload;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

@Data
public class UploadFileLog implements Serializable {

	private static final long serialVersionUID = -953228559072129247L;

	private Integer logId;

	private Integer fileId;

	private String batchCode;

	private String dictCode;

	private String jobCode;

	private String code;

	private String msg;

	private String content;

	private Date createTime;

	private String failInfo;
	
	private Integer version;

	public UploadFileLog(Integer fileId, String batchCode, String dictCode, String jobCode, String code, String msg,
			String content) {
		this.fileId = fileId;
		this.batchCode = batchCode;
		this.dictCode = dictCode;
		this.jobCode = jobCode;
		this.code = code;
		this.msg = msg;
		this.content = content;
		this.createTime = new Date();
	}

	public UploadFileLog(UploadFileLogEnum logEnum, Integer fileId, String batchCode, String dictCode, String jobCode,
			String content) {
		this.fileId = fileId;
		this.batchCode = batchCode;
		this.dictCode = dictCode;
		this.jobCode = jobCode;
		this.code = logEnum.getCode();
		this.msg = logEnum.getMsg();
		this.content = content;
		this.createTime = new Date();
	}

	public UploadFileLog() {
	}

}
